<!-- 安防概览 》 背景地图 -->

<template>
  <div class="SecureOverview-BackgroundMap">
    <img :src="coverImg" />

    <MapView v-if="map_info.id" />
    <MapEmpty v-else-if="map_readyInfo" />

    <MapTab />

    <MapTree />

    <MyModal />

    <AreaModal />

    <DeviceModal />
  </div>
</template>

<script>
// ============================== 导入依赖 ============================== //

import CORE from '@/CORE'
import mixMap from '@admin/views/Secure/mixMap'
import store from './store'
import UTIL from '../UTIL'

// ============================== 导出组件 ============================== //

export default {
  /**
   * 名称定义 (实际使用名称)
   */
  name: 'BackgroundMap',

  /**
   * 混入列表 (配置选项合并)
   */
  mixins: [mixMap('1', store), CORE.mixApiMenu('背景地图')],

  /**
   * 组件导入 (Abc.vue + Abc/index.vue)
   */
  ...CORE.components(require.context('./', true, /vue$/)),

  /**
   * 计算属性 (慎用箭头函数)
   */
  computed: {
    /**
     * 遮罩图片
     */
    coverImg: () => UTIL.getImg('cover'),
  },
}
</script>

<style lang="scss">
@import './index.scss';
</style>
